package com.zhg.videorecord.encoder.impl

import android.graphics.SurfaceTexture
import android.hardware.Camera
import android.media.MediaFormat
import android.opengl.EGLContext
import com.zhg.videorecord.encoder.Encoder
import com.zhg.videorecord.entity.CodecContext

/**
 *
 * 使用x264软编
 */
class VideoX264EncoderImpl (var context: CodecContext,
                            private val textureId: IntArray,
                            private var eglContext: EGLContext,
                            override var onPreparedListener: Encoder.OnPreparedListener? = null,
                            override var onRecordListener: Encoder.OnRecordListener? = null)
    : Encoder {


    override fun start() {

    }

    override fun pause() {

    }

    override fun stop() {

    }

    override fun setOnSampleListener(listener: Encoder.OnSampleListener) {

    }

    override fun setPresentationTime(nsecs: Long) {

    }

    override fun getOutputFormat(): MediaFormat {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.

    }

    override fun onFrameAvailable(surfaceTexture: SurfaceTexture?) {

    }
    override fun onPreviewFrame(p0: ByteArray?, p1: Camera?) {
    }
}